
// 自定义图片指令
export const imgerror = {
  inserted(el, binding) {
    console.log(el, binding.value)
    el.onerror = function() {
      el.src = binding.value
    }
  }
}
// 自定义颜色指令
export const color = {
  inserted(el, binding) {
    el.style.color = binding.value
    // el.onerror = function() {

    // }
  }
}
